﻿@using LKVMLMADMIN.Models;
@using PagedList.Mvc;
@using System.Globalization;
@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@using (Html.BeginForm("CauHinhHeThong", "CauHinh", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-inline" }))
{
    <div id="wrapper">
        <div class="clear-fix"></div>
        <div class="row" style=" min-height: 110px; padding-left: 30px; ">
            <h3 class="page-header">Cấu hình </h3>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel-body">
                    <div class="dataTable_wrapper">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                                <tr style="font-family:'Times New Roman'">
                                    <th>STT</th>
                                    <th>Roi</th>
                                    <th>isMaintainent</th>
                                    <th>PenddingWallet</th>  
                                    <th>Thao tác</th>  
                                </tr>
                            </thead>
                            <tbody style="font-family:'Times New Roman'">
                                @{int j = 0;}
                                @foreach (var item in ViewBag.ListGconfig)
                                {
                                    j++;
                                    <tr>
                                        <td>@j</td>
                                        <td>@item.ROI</td>                                    
                                        <td>
                                    @{
                                    if (item.isMaintainent == true)
                                    { 
                                        <input name="checkMeOut" type="checkbox" checked="checked" id="checkMeOut" />
                                    }
                                    else
                                    {                                      
                                         <input name="checkMeOut" type="checkbox" id="checkMeOut" />
                                    }
}
                                        </td>
                                        <td>
                                    @{
                                    if (item.PenddingWallet == true)
                                    {

                                        <input name="Check" type="checkbox" checked="checked" id="CG1_@item.PenddingWallet" class="CG1_@item.PenddingWallet" />
                                    }
                                    else
                                    {
                                        <input name="Check" type="checkbox" id="CG1_@item.PenddingWallet" class="CG1_@item.PenddingWallet" />
                                    }
}
                                        </td>
                                        <td><a class="con" href="@Url.Action("EditGConfig", "CauHinh", new { ided = item.Id })">Sửa</a></td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>            
                </div>
            </div>
        </div>
    </div>
}
